import request from '@/utils/request'

// 查询保修卡模板列表
export function listMoban(query) {
  return request({
    url: '/baoxiu/moban/list',
    method: 'get',
    params: query
  })
}

// 查询保修卡模板详细
export function getMoban(id) {
  return request({
    url: '/baoxiu/moban/' + id,
    method: 'get'
  })
}

// 新增保修卡模板
export function addMoban(data) {
  return request({
    url: '/baoxiu/moban',
    method: 'post',
    data: data
  })
}

// 修改保修卡模板
export function updateMoban(data) {
  return request({
    url: '/baoxiu/moban',
    method: 'put',
    data: data
  })
}

// 删除保修卡模板
export function delMoban(id) {
  return request({
    url: '/baoxiu/moban/' + id,
    method: 'delete'
  })
}
